local skel = fk.CreateSkill {
  name = "emo__ranxue",
  tags = {Skill.Compulsory},
}

Fk:loadTranslationTable{
  ["emo__ranxue"] = "染血",
  [":emo__ranxue"] = "锁定技，出牌阶段开始时，你视为对所有角色使用一张【杀】，你不可响应此【杀】。",
}

skel:addEffect(fk.EventPhaseStart, {
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(skel.name) and player.phase == Player.Play
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    local slash = Fk:cloneCard("slash")
    slash.skillName = skel.name
    if player:prohibitUse(slash) then return end
    local tos = table.filter(room:getAlivePlayers(), function(p)
      return not player:isProhibited(p, slash)
    end)
    if #tos == 0 then return end
    room:useCard{
      from = player, tos = tos, card = slash, extraUse = true,
      disresponsiveList = {player},
    }
  end,
})

return skel
